package cn.summit.email.controller;

import cn.summit.email.event.UserService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author summit
 * @since 2020/11/30 10:39
 */
@RestController
@RequiredArgsConstructor
public class SpringEventController {

    private final UserService userService;

    @GetMapping("/event")
    public void regist() {
        userService.register("summit", "pwd");
    }
}
